package ytt.small.fore.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import ytt.small.fore.model.po.UserToken;

/**
 * @Author: small_woods
 * @Date: 2020/6/16 11:50
 */
@Mapper
@Component
public interface UserTokenMapper {
    //插入token
    void insert(UserToken userToken);

    //根据token是否存在
    UserToken selectByUsername(String username);

    //根据username更新token
    void updateByToken(UserToken userToken);
}
